import Vue from 'vue'

Vue.prototype.$header = () => {

	let param = {
		token: uni.getStorageSync("token"),
		loginId: uni.getStorageSync("loginId"),
		OPERATOR_TYPE: Vue.prototype.$role == 1 ? 'APP_SHOP_USER' : 'APP_USER'
	}

	if (plus.os.name == "iOS") {
		param.OPERATOR_SYSTEM = "IOS"
	} else {
		param.OPERATOR_SYSTEM = "ANDROID"
	}


	return param
}